package hibernate;

import org.junit.Test;

public class Student {
	

	private String name;
	private Integer s_ID;
	private String pwd ;
	
	private Teacher teacher;
	
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getS_ID() {
		return s_ID;
	}

	public void setS_ID(Integer s_ID) {
		this.s_ID = s_ID;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public Student(String name, String pwd) {
		super();
		this.name = name;
		this.pwd = pwd;
	}
	public Student() {
		super();
		// TODO Auto-generated constructor stub
	}
	

	@Override
	public String toString() {
		return "Student [name=" + name + ", s_ID=" + s_ID + ", pwd=" + pwd + "]";
	}

	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		return s_ID.equals(((Student) obj).getS_ID());
	}
	

}
